package com.ruoyi.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.customer.mapper.ErpCustomerInfoClaimMapper;
import com.ruoyi.customer.domain.ErpCustomerInfoClaim;
import com.ruoyi.customer.service.IErpCustomerInfoClaimService;

/**
 * 拓客认领记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-05
 */
@Service
public class ErpCustomerInfoClaimServiceImpl implements IErpCustomerInfoClaimService 
{
    @Autowired
    private ErpCustomerInfoClaimMapper erpCustomerInfoClaimMapper;

    /**
     * 查询拓客认领记录
     * 
     * @param id 拓客认领记录主键
     * @return 拓客认领记录
     */
    @Override
    public ErpCustomerInfoClaim selectErpCustomerInfoClaimById(Long id)
    {
        return erpCustomerInfoClaimMapper.selectErpCustomerInfoClaimById(id);
    }

    /**
     * 查询拓客认领记录列表
     * 
     * @param erpCustomerInfoClaim 拓客认领记录
     * @return 拓客认领记录
     */
    @Override
    public List<ErpCustomerInfoClaim> selectErpCustomerInfoClaimList(ErpCustomerInfoClaim erpCustomerInfoClaim)
    {
        return erpCustomerInfoClaimMapper.selectErpCustomerInfoClaimList(erpCustomerInfoClaim);
    }

    /**
     * 新增拓客认领记录
     * 
     * @param erpCustomerInfoClaim 拓客认领记录
     * @return 结果
     */
    @Override
    public int insertErpCustomerInfoClaim(ErpCustomerInfoClaim erpCustomerInfoClaim)
    {
        return erpCustomerInfoClaimMapper.insertErpCustomerInfoClaim(erpCustomerInfoClaim);
    }

    /**
     * 修改拓客认领记录
     * 
     * @param erpCustomerInfoClaim 拓客认领记录
     * @return 结果
     */
    @Override
    public int updateErpCustomerInfoClaim(ErpCustomerInfoClaim erpCustomerInfoClaim)
    {
        return erpCustomerInfoClaimMapper.updateErpCustomerInfoClaim(erpCustomerInfoClaim);
    }

    /**
     * 批量删除拓客认领记录
     * 
     * @param ids 需要删除的拓客认领记录主键
     * @return 结果
     */
    @Override
    public int deleteErpCustomerInfoClaimByIds(Long[] ids)
    {
        return erpCustomerInfoClaimMapper.deleteErpCustomerInfoClaimByIds(ids);
    }

    /**
     * 删除拓客认领记录信息
     * 
     * @param id 拓客认领记录主键
     * @return 结果
     */
    @Override
    public int deleteErpCustomerInfoClaimById(Long id)
    {
        return erpCustomerInfoClaimMapper.deleteErpCustomerInfoClaimById(id);
    }
}
